<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2023/5/24
 * Time: 9:59
 */

namespace app\index\validate;


use think\Validate;

class Wx extends Validate
{
    protected $rule = [
        'title'=>'require',
        'desc'=>'require',
        'img'=>'require',
        'url'=>'require',
        'state'=>'require',
        'id'=>'require',
    ];

    protected $message = [
        'title'=>'请填写标题',
        'desc'=>'请填写简介',
        'img'=>'请上传图片',
        'url'=>'请输入跳转的url',
        'state'=>'请选状态',
        'id'=>'缺少id',
    ];

    protected $scene = [
        'wx_up'  =>  ['title','desc','img','url','state','id'],
        'wx_record'  =>  ['title','desc','img','url','state'],
    ];
}